<{if count($product.spec_desc_info)>1}>
<li class="addcart buy-select" style="z-index:<{$zindex}>">
<{if $showtextbuy}><a class='lnk'><{t}>加入购物车<{/t}></a><{/if}>
<div class="buy-select-list" style="display:none;">
<h3><{if count($product.spec_desc_info) == 0}><{t}>该商品暂时无货<{/t}><{else}><{t}>请选择规格<{/t}><{/if}></h3>
<table width="100%">
<{foreach from=$product.spec_desc_info item=item}>
  <tr>
    <td width="100" nowrap="nowrap"><{$item.spec_info}></td>
    <td ><span class="fontcolorRed fontbold"><{$item.price|cur}></span></td>
    <td width="80" align="center" style="vertical-align:middle" nowrap="nowrap">
    <{if $addcart_disabled != 1}>


		<{if $item.store === null || $item.store - intval($item.freez) > 0}>
      <a type="g" href="<{link app=b2c ctl=site_cart act=addToCart arg0=goods arg1=$product.goods_id arg2=$item.product_id arg3='1'}>" buy="<{$product.goods_id}>sdfsdf" product="<{$product_id}>"<{if $setting.buytarget == 2}> target="_blank_cart"<{elseif $setting.buytarget == 3}> target="_dialog_minicart"<{/if}> title="<{t}>加入购物车<{/t}>" rel="nofollow" class="btnbuy"><{t}>购买<{/t}></a>
      
      <{else}>
      <a type="g" href="<{link app=b2c ctl=site_product act=gnotify arg0=$product.goods_id arg1=$product_id}>" rel="nofollow" class="btnbuy" title="<{t}>缺货登记<{/t}>"><{t}>缺货<{/t}></a>
<{/if}>


    <{/if}>
    </td>
  </tr>
<{/foreach}>
</table>
</div>
<{else}>
  <{if $addcart_disabled != 1}>

<{foreach from=$product.spec_desc_info item=item}>
		<{if $item.store === null || $item.store - intval($item.freez) > 0}>
    <li class="addcart">
    <a href="<{link app=b2c ctl=site_cart act=addToCart arg0=goods arg1=$product.goods_id arg2=$item.product_id arg3='1' }>" type="g" buy="<{$product.goods_id}>" class="listact"<{if $setting.buytarget == 2}> target="_blank_cart"<{elseif $setting.buytarget == 3}> target="_dialog_minicart"<{/if}> title="<{t}>加入购物车<{/t}>" rel="nofollow"><{t}>加入购物车<{/t}></a>
    </li>
          <{else}>
			<li class="nobuy">
      <a type="g" href="<{link app=b2c ctl=site_product act=gnotify arg0=$product.goods_id arg1=$product_id}>" rel="nofollow" class="" title="<{t}>缺货登记<{/t}>"><{t}>缺货<{/t}></a>
    </li>
<{/if}>

<{break;}>
<{/foreach}>


  <{/if}>
<{/if}>
</li>
<li class="vdetail zoom"><a title="<{$product.name|escape:html}>" href="<{link app=b2c ctl=site_product act=index arg0=$product.goods_id}>" pic='<{$product.big_pic|default:$env.conf.site.default_big_pic|storager}>' target="_blank" class="listact" title="<{t}>查看详细<{/t}>"><{t}>查看详细<{/t}></a></li>
